#include "stdafx.h"
#include "flydx9.h"
#include "StructureAndConst.h"
#include "SpriteTrap.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

SpriteTrap::SpriteTrap(SpriteMultiFrame* pNormal,SpriteMultiFrame* pBlast,int nLayer):
BaseDispSprite(nLayer),m_pNormal(pNormal),m_pBlast(pBlast)
{

}

SpriteTrap::~SpriteTrap()
{
	SAFE_DELETE(m_pNormal);
//	SAFE_DELETE(m_pBlast);
}

bool SpriteTrap::Draw(DWORD dwCurrentTime)
{
	// if in normal state
	m_pNormal->Draw(dwCurrentTime);
	//if in blast state
	//m_pBlast->Draw(dwCurrentTime);

	return true;	
}